package com.bdqn.t296.noso.service.Imp;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t296.noso.entity.Lpharmacy;
import com.bdqn.t296.noso.entity.Lrecord;
import com.bdqn.t296.noso.mapper.DrugMapper;
import com.bdqn.t296.noso.service.LdrugService;
import org.springframework.stereotype.Service;
import org.apache.ibatis.annotations.Param;
import javax.annotation.Resource;
import java.util.List;
@Service
public class LdrugServicelmp implements LdrugService {
    @Resource
    private DrugMapper drugMapper;


    @Override
    public IPage<Lpharmacy> selDrug(Page<Lpharmacy> page, @Param(value ="Lpharmacy") Lpharmacy lpharmacy) {
        return drugMapper.selDrug(page,lpharmacy);
    }

    @Override
    public IPage<Lrecord> selDrugs(Page<Lrecord> page, @Param(value ="Lrecord") Lrecord lrecord) {
        return drugMapper.selDrugs(page,lrecord);
    }



    @Override
    public int addDrug(Lrecord lrecord) {
        return drugMapper.addDrug(lrecord);
    }

    @Override
    public int updDrug(Lrecord lrecord) {
        return drugMapper.updDrug(lrecord);
    }

    @Override
    public int delDrug(Lrecord lrecord) {
        return drugMapper.delDrug(lrecord);
    }

    @Override
    public int updDrugs(Lrecord lrecord) {
        return drugMapper.updDrugs(lrecord);
    }

    @Override
    public int updNum(Lrecord lrecord) {
        return drugMapper.updNum(lrecord);
    }

    @Override
    public int upd(Lrecord lrecord) {
        return drugMapper.upd(lrecord);
    }
}
